<?php

declare(strict_types=1);

return [
    'user_info_key' => 'mj:user:info:%s',     //用户信息redis的key，fd对应用户信息
    'user_bind_key' => 'mj:user:bind:%s',     //用户绑定信息和fd绑定key，里面存是根据fd存入account和fd绑定关系
    'expire' => 1 * 24 * 60 * 60,          //设置key过期时间， 设置为1天
    'fake_expire' => 4 * 60 * 60,          //设置key过期时间， 设置为4H
    'wait_room_list' => 'mj:user:room:wait_list',        //用户进入房间队列
    'room_list' => 'mj:user:room:list',        //用户进入房间队列
    'user_room_no' => 'mj:user:room:no',         //用户自增房间号
    'user_room' => 'mj:user:room:map:%s',        //用户和房间映射关系
    'user_room_data' => 'mj:user:room:data:%s',  //用户游戏房间数据
    'user_room_chair' => 'mj:user:room:chair:%s',  //用户游戏房间桌位号
    'user_room_play' => 'mj:user:room:play:%s',  //用户游戏房间打牌步骤数据
    'user_room_wait' => 'mj:user:room:wait:%s',  //等待开局房间user:room:wait:1000006
    'user_room_total' => 'mj:user:room:total',   //总房间集合
    'user_room_log_room' => 'mj:user:room:log:room:%s',       //房间游戏历史集合
    'user_room_prepare' => 'mj:user:room:prepare:%s',   //加入房间准备记录
    'user_room_heart' => 'mj:user:room:heart:%s',   //房间玩家超过心跳掉线记录
    'user_room_log_id' => 'mj:user:room:log:id:%s',   //房间对局记录id集合
    'user_room_loop' => 'mj:user:room:loop:%s',   //房间对局记录id集合
    'user_room_change' => 'mj:user:room:change:%s',   //房间换牌记录id集合
    'user_room_color' => 'mj:user:room:color:%s',   //房间定缺记录id集合 [$uid1=>1,$uid2=>2,$uid3=>3],
    'user_room_progress' => 'mj:user:room:progress:%s',   //房间进度记录id集合 0.加入游戏阶段 1.准备阶段 2.换牌阶段 3.定缺阶段 4.出牌阶段 5.摸牌阶段 6.结算阶段
    'user_room_assign' => 'mj:user:room:assign:%s',   //房间发牌记录id集合
    'user_room_checkhpg' => 'mj:user:room:checkhpg:%s',   //检查胡碰杠 [$uid1=>1,$uid2=>2,$uid3=>3],  // 0.无 1.胡 2.碰 3.杠
    'user_room_counter' => 'mj:user:room:counter:%s',   //房间计数器
    'user_room_robot' => 'mj:user:room:robot:%s',   //房间机器人
    'user_room_timer_add' => 'mj:user:room:timer:add',   //房间定时器
    'user_room_timer_del' => 'mj:user:room:timer:del',   //房间定时器
    'user_room_timer_add_two' => 'mj:user:room:timer:add_two',   //房间定时器
    'user_room_timer_del_two' => 'mj:user:room:timer:del_two',   //房间定时器

    'fake_room_hallFake' => 'mj:user:room:hallFake', // 模拟大厅房间数据
    'user_room_status' => 'mj:user:room:status',    // 玩家状态hash


    'djs_wait_list' => 'mj:user:room:djs:wait_list',   //大奖赛定时器
    'djs_player' => 'mj:user:room:djs:player',   //大奖赛用户信息
    'djs_timer_add' => 'mj:user:room:djs:timer_add',   //大奖赛定时器
    'djs_timer_del' => 'mj:user:room:djs:timer_del',   //大奖赛定时器
    'djs_run_data' => 'mj:user:room:djs:run_data', // 大奖赛跑马灯数据
    'djs_rank' => 'mj:coupon',                 // 大奖赛优惠券排行榜
];
